#ifndef MODBUS_H
#define MODBUS_H

int ModbusRM(int socket, U8* cmd);
int ModbusWM(int socket, U8 *cmd);
int ModbusWS(int socket, U8 *cmd);

int GetGroupBC();
int MDGetCmdByteLen(U8 *cmd);
int send_err(int socket, U8 *cmd, char e_code );

#endif
